/*
 * @Author: czy
 * @Date: 2021-07-09 12:35:07
 * @LastEditTime: 2021-07-12 22:07:58
 */
extern int timer_on;
extern int keyboardInterrupt_on;

/**
 * @description: Turn off interrupt (only interrupt hook function execution is prohibited).
 */
void cli(void)
{
    timer_on = 0;
    keyboardInterrupt_on = 0;
}

/**
 * @description: Turn on interrupt.
 */
void sti(void)
{
    timer_on = 1;
    keyboardInterrupt_on = 1;
}
